using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace NCP.Model
{
    [Serializable]
    [SugarTable("PhaDrugPurchase")]
    public partial class PhaDrugPurchase : BaseModel2
    {

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "PurchaseCode", IsPrimaryKey = true)]
        public string PurchaseCode { get; set; }

        /// <summary>
        /// 药品编码
        /// </summary>
        [SugarColumn(ColumnName = "DrugCode")]
        public string DrugCode { get; set; }

        /// <summary>
        /// 药品名称
        /// </summary>
        [SugarColumn(ColumnName = "DrugName")]
        public string DrugName { get; set; }

        /// <summary>
        /// 数量，最小单位数量，采购为正数，退库为负数
        /// </summary>
        [SugarColumn(ColumnName = "Qty")]
        public decimal Qty { get; set; }

        /// <summary>
        /// 包装数量
        /// </summary>
        [SugarColumn(ColumnName = "PackQty")]
        public decimal PackQty { get; set; }

        /// <summary>
        /// 包装单位
        /// </summary>
        [SugarColumn(ColumnName = "PackUnit")]
        public string PackUnit { get; set; }

        /// <summary>
        /// 最小单位
        /// </summary>
        [SugarColumn(ColumnName = "MinUnit")]
        public string MinUnit { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [SugarColumn(ColumnName = "Specs")]
        public string Specs { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        [SugarColumn(ColumnName = "UnitPrice")]
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 入库类型 1 采购入库，2退库
        /// </summary>
        [SugarColumn(ColumnName = "Type")]
        public string Type { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [SugarColumn(ColumnName = "OperCode")]
        public string OperCode { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [SugarColumn(ColumnName = "OperDate")]
        public DateTime OperDate { get; set; }

    }
}